﻿@{
	string h1Value = PageTitle.Count > 0 ? PageTitle.Last().Text : null;
	string headText = Html.Head(PageTitle).ToString();
	if (!String.IsNullOrEmpty(headText))
	{
		headText += " / ";
	}
}
<!DOCTYPE html>
<html>
<head>
	<title>
		@headText.AsHtml()Администрирование WebMP
	</title>
	@Html.Partial("_AdminHead")
	@RenderSection("head", false)
</head>
<body>
	<section id="Left">
		<div>
			<nav>
				@Html.ActionModule("AdminMenu", "Menu", "System")
			</nav>
		</div>
	</section>
	<section id="Main">
		<div>
			@if (!String.IsNullOrEmpty(h1Value))
			{
				<h1>@h1Value.AsHtml()</h1>
				@Html.Partial("Path", PageTitle)
			}
			@RenderBody()
		</div>
	</section>
</body>
</html>